<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  	<head>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    	<title>Math</title>
    	<script type="text/javascript" src="02_math.js"></script>
    	<script type="text/javascript">
      		window.onload = generateRandomNumber;

      		function generateRandomNumber() {
		        var result = getRandomNumber(11, 18, 8);
		        var output = "";
		        for (var i = 0; i < result.length; i++) {
		          output += result[i];
		          if (i != result.length - 1)
		          output += ", ";
		        }

        		document.write(output + "<br/>");
		        document.write(fix(2.2345, 2) + "<br/>");
		        document.write(fix(2.2, 5) + "<br/>")
      		}
    	</script>
  	</head>
  	<body>
  	</body>
</html>
